import React, { Component } from 'react';
import { connect } from 'react-redux';
import $http from '../../http';
function mapStateToProps(state) {
    return {
      ...state
    };
}

function mapDispatchToProps(dispatch) {
    return {
        getList(){
            dispatch(()=>{
              $http.get('/api/list').then((res)=>{
                  dispatch({type:"SET_LIST",data:res.data})
              })
            })
        }
    };
}

class Cate2 extends Component {
    componentWillMount(){
        // 可用用 this.props.list获取仓库中的list状态
    }
    render() {
        return (
            <div>
               评论列表页 
            </div>
        );
    }
}

export default connect(
    mapStateToProps,mapDispatchToProps
)(Cate2);